import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

export default new Vuex.Store({
  state: {
    writerData: {
      writerName: window.sessionStorage.getItem("writerName"),
      writerAvatar: window.sessionStorage.getItem("writerAvatar")
    },
    adminData: {
      adminName: window.sessionStorage.getItem("adminName"),
      adminAvatar: window.sessionStorage.getItem("adminAvatar")
    },
    userData: {
      userName: window.sessionStorage.getItem("userName"),
      userAvatar: window.localStorage.getItem("userAvatar")
      //window.sessionStorage.getItem("userAvatar")
    }
  },
  getters: {
  },
  mutations: {
  },
  actions: {
  },
  modules: {
  }
})
